﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.Models.Enum
{
    public enum EBreakpointOper
    {
        Unknown = 0,
        Add = 1,
        Update,
        Delete
    }

    public static class BreakpointOperExtension
    {
        public static EBreakpointOper WFToOperation(this DWF.Studio.RemoteCtrls.EOperation operation)
        {
            switch (operation)
            {
                case DWF.Studio.RemoteCtrls.EOperation.Add: return EBreakpointOper.Add;
                case DWF.Studio.RemoteCtrls.EOperation.Update: return EBreakpointOper.Update;
                case DWF.Studio.RemoteCtrls.EOperation.Delete: return EBreakpointOper.Delete;
                default: return EBreakpointOper.Unknown;

            }
        }
    }
}
